Setting up to update the VA Mobile doc site
These instructions are for people who are comfortable with maintaining and troubleshooting setup on their local machine. If that's not you, please reach out to the QART tech lead for assistance.
Before you can update the VA Mobile documentation website, you first need to download and set up a few different tools. You only need to do this once. Feel free to buddy up with someone for help with the initial setup!
1. Download & install Git
Instructions: Git - Installing Git
On Mac:
Open Terminal (It’s in Applications > Utilities; you can also use Spotlight to find it by pressing CMD + Spacebar on your keyboard and typing in the word “terminal.”
To run Git, type git
and then hit enter. If not installed, it will prompt you to install (hit “install”).
If already installed, it will look like this:
On Windows:
2. Download & install a text editor
For example: Sublime Text or TextMate (You can do this while Git is downloading).
3. Download & install GitHub Desktop
a. Download GitHub Desktop
(You can also do this while Git is downloading).
b. Install GitHub Desktop
Open the ZIP file. When Finder comes up, you will want to drag the application into the Applications folder. (Not running GitHub Desktop from the Application folder could cause problems with the app.)
Open the GitHub app from either the Finder window or using quick search ⌘ + Space and type “GitHub desktop”.
The first time you open the app, you may see a warning:
If so, click Open.
c. Set up GitHub Desktop
(You need to have Git installed to do this step). When the app opens it may ask you to log into GitHub. Once you are logged in you should see a screen like this:
Wait until your repositories list loads on the right.
Get connected to the va-mobile-app repository
Once the list has loaded, scroll or use search until you find department-of-veterans-affairs/va-mobile-app. Click on the respiratory name (department-of-veterans-affairs/va-mobile-app). You should get an option to clone the repository (button at the bottom): https://github.com/department-of-veterans-affairs/va-mobile-app
Cloning the va-mobile-app repository
Click the “Clone department-of-veterans-affairs/va-mobile-app” button. A modal will pop up (see below).
Choose the local path on your machine where you want to save it and click the “Clone” button (Documents is a good place, but anywhere but Desktop is a fine place to put it).
You will then see a loading screen:
When the repository has finished cloning, your Github Desktop screen will look like this:
Your tools are now set up and ready for you to make changes to the Doc site!
4. Set up Docusaurus
The VA Mobile documentation website is built using Docusaurus 2, a modern static website generator. There are several steps you’ll need to take to get it set up. See also: Docusaurus Installation.
On Mac:
- Open Terminal. Download & install these things in the following order:
On Windows:
- Open Command Line. Download & install these things in the following order:
To set up Docusaurus, you will need to do two things.
First: Open the VAMobile folder in Terminal or Command Line.
- To do this, use the Finder to navigate to the folder where the doc site is on your machine:
somefolderonyourcomputer/VAMobile
- Back in Terminal/Command Line, type
cd
and then a space, then drag and drop thesomefolderonyourcomuter/VAMobile/
folder from the finder into Terminal/Command Line. It will look like this:
- Hit enter. Type
yarn
and hit enter again.
Next: Navigate to the doc site repository folder in Terminal/Command Line.
- To do this, use the Finder to navigate to the folder where the doc site is on your machine:
somefolderonyourcomputer/VAMobile/documentation
- Back in Terminal/Command Line, type
cd
and then a space, then drag and drop thesomefolderonyourcomputer/VAMobile/documentation
folder from the finder into terminal. It will look like this:
- Hit enter. To install Docusaurus, type
yarn
and hit enter again. - Docusaurus is now installed!